﻿#if UNITY_IOS
namespace Notifications.Runtime.iOS
{
    public static class iOSBackgroundNotificationCenter
    {
        public static void SendNotification(iOSBackgroundGameNotification notification)
        {
            #if UNITY_EDITOR
               return;
            #endif
            iOSBackgoundNotificationsWrapper._SendBackgroundNotification(notification.GetId().ToString(),
                notification.GetTitle(),
                notification.GetContent(),
                notification.GetChannelId());
        }
        
        public static void RemoveDeliveredNotification(int notificationId)
        {
#if UNITY_EDITOR
             return;
#endif
            iOSBackgoundNotificationsWrapper._CancelBackgroundNotification(notificationId.ToString());
        }

        public static void RequestAuthorization()
        {
#if UNITY_EDITOR
            return;
#endif
            iOSBackgoundNotificationsWrapper._RequestAuthorization();
        }
    }
}
#endif